Documentation

imonit_client.php

This is the client-side library required for using the i-mon-it service. There are four files that need to be plced on your web servers: 1. imonit_client.php: This is the core requirement holding the logic and required methods 1. imonit_client_lib.php: this library contains the central functions used by the rest of the library. Those are more rudimentory functins.

  1. imonit_client.inc; This is a helperfile, which is loading the client libary and the client side libary into your web application. imonit.token This is the token file identifying your webappliction. This is individual for each of your web applications monitored by the i-mon-it service.

This library contains several static functions, which make remote calls to the i-mon-it server.In order to use the i-mon-it micro services you need to include this library and imonit_client_lib.php into every page and class you want to monitor with the i-mon-it service. In order to use the services you need to call the central i-mon-it SaaS micro services. Below you find the explanation how to do this:

Tags
see
imonit_client::start()
see
imonit_client::gettokenid

()

see
imonit_client::mid()
see
imonit_client::end()
see
imonit_client::startPage

()

see
imonit_client::lastentry()
see
imonit_client::midPage()
see
imonit_client::endPage()
see
imonit_client::__construct()
see
imonit_client::verifytoken()
see
imonit_client::updatetoken()
see
imonit_client::ua()
author

Stephan Haux

copyright

i-mon-it 2026

version
00.01.260

05.07.2026

name

i-mon-it Client

category

library @api

Table of Contents

Classes

imonit_client

Constants

checktoken  = \listener . '/checktoken.php'
URL for the verifytoken service to compare the wesit imonit.token with the one dynamically genered by the i-mon-it system-
count  = \listener . 'count.php'
URL for the count microservice service.
end  = \listener . 'end.php'
URL for the end service.
endpage  = \listener . '/endpage.php'
URL for the endpage service.
imonit_server  = $server
itoken  = 'token'
This is the name of the session variable holding information about the token number used on the website to be monitored.
itokenfilename  = 'imonit.token'
Name of the local file holding the token.This file has to be placed in the root directory of your webapplication in one each for each webapplication. Those files are personalized for our account and the webapplivcation you are monitoring with i-mon-it. If you plan to also moitor your development and staging environment it needes to contain a token each as well.
lastentry  = \listener . 'lastentry.php'
listener  = 'http://' . \imonit_server . '/'
local_server  = '.i-mon-it.de'
mid  = \listener . 'mid.php'
URL for the mid service.
midpage  = \listener . '/midpage.php'
URL for the midpage service.
ping  = \listener . 'ping.php'
start  = \listener . 'start.php'
startpage  = \listener . 'startpage.php'
ua  = \listener . 'UA.php'

Constants

checktoken

URL for the verifytoken service to compare the wesit imonit.token with the one dynamically genered by the i-mon-it system-

public string checktoken = \listener . '/checktoken.php'

URL for the verifytoken service

Tags
see
imonit_client::verifytoken()

endpage

URL for the endpage service.

public string endpage = \listener . '/endpage.php'

URL for the endpage service

Tags
see
imonit_client::endpage()

itoken

This is the name of the session variable holding information about the token number used on the website to be monitored.

public mixed itoken = 'token'

itokenfilename

Name of the local file holding the token.This file has to be placed in the root directory of your webapplication in one each for each webapplication. Those files are personalized for our account and the webapplivcation you are monitoring with i-mon-it. If you plan to also moitor your development and staging environment it needes to contain a token each as well.

public string itokenfilename = 'imonit.token'

Name of the tokenfile holding the correct information.

lastentry

public mixed lastentry = \listener . 'lastentry.php'

listener

public mixed listener = 'http://' . \imonit_server . '/'

midpage

URL for the midpage service.

public string midpage = \listener . '/midpage.php'

URL for the endpage service

Tags
see
imonit_client::endpage()

startpage

public mixed startpage = \listener . 'startpage.php'

        
On this page

Search results